package cn.com.cloudpioneer.evaluate.mapper;

import cn.com.cloudpioneer.evaluate.model.ItemModel;
import cn.com.cloudpioneer.evaluate.vo.res.ResItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @auther maruikai
 * @create 2023/9/13-14:19
 */
public interface ItemMapper {

    Integer addWork(ItemModel workModel);

    Integer updateWork(ItemModel workModel);

    Integer delWork(@Param("itemId") String itemId);

    List<ItemModel> findAll();

    List<ItemModel> findAchieveList(@Param("keyword") String keyword, @Param("userId") String userId, @Param("evaluateFlag") boolean evaluateFlag);

    ItemModel findById(@Param("itemId") String itemId);

    Integer updateStatusAndPath(@Param("filePath") String filePath, @Param("status") int evaluateStatus, @Param("itemId") String itemId);

    Integer updatePath(@Param("filePath") String filePath, @Param("itemId") String itemId);

    Integer updateStatus(@Param("status") int evaluateStatus, @Param("itemId") String itemId);
}
